LD = ld
LDFLAG = -o
LIB = -lm -ldl -lpthread -lrt -ldl
CC = gcc
CCFLAG = -g -c -static

SRC = ccp903_asym_api.c ccp903_rsa1024.c ccp903_rsa2048.c ccp903_rsa4096.c ccp903_sm2.c
OBJ = ccp903_asym_api.o ccp903_rsa1024.o ccp903_rsa2048.o ccp903_rsa4096.o ccp903_sm2.o
APP = asym_demo

$(APP):$(OBJ)
	$(CC) $(LDFLAG) $(APP) $(OBJ) $(INCDIR) $(LIBDIR) $(LIB)

$(OBJ):$(SRC)
	$(CC) $(CCFLAG) $(SRC) $(INCDIR)

clean:
	rm $(APP) $(OBJ)

